(function(){
	function _$(els){
		this.elements = [];
		for(var i=0,len=els.length; i<len; ++i){
			var element = els[i];
			if(typeof element === 'string'){
				element = document.getElementById(element);
			}
			this.elements.push(element)
		}
	}
	
	_$.prototype = {
		each: function(fn){
			for(var i=0, len=this.elements.length; i<len; ++i){
				fn.call(this, this.elements[i])
			}
			return this;
		},

		setStyle: function(prop, val){
			this.each(function(el){
				el.style[prop] = val;
			});
			return this;
		},
		
		show: function(){
			var that = this;
			this.each(function(el){
				that.setStyle('display', 'block');
			});
			return this;
		}
		
	}

	window.$ = function(){
		return new _$(arguments);
	};
})()
